﻿@model DotNet.Highcharts.Highcharts
@{
    ViewBag.Title = "Pie With Monochrome Fill";
}

<script type="text/javascript">
    $(function () {
        // Radialize the colors
        Highcharts.getOptions().plotOptions.pie.colors = (function () {
            var colors = [], base = Highcharts.getOptions().colors[0], i;

            for (i = 0; i < 10; i++) {
                // Start out with a darkened base color (negative brighten), and end
                // up with a much brighter color
                colors.push(Highcharts.Color(base).brighten((i - 3) / 7).get());
            }
            return colors;
        }());
    });
</script>

@(Model)